//
//  FindCell.m
//  MyItem
//
//  Created by SoulWater on 15/12/30.
//  Copyright © 2015年 admin. All rights reserved.
//

#import "FindCell.h"

@implementation FindCell

- (void)awakeFromNib {
    // Initialization code
}


-(void)setModel:(FindListModel *)model
{
    if (_model != model)
    {
        _model = model;
        
        [self setNeedsLayout];
    }
    
}


-(void)layoutSubviews
{
    [super layoutSubviews];
    
    NSString *urlStr = self.model.icon;
    [_iconImgView sd_setImageWithURL:[NSURL URLWithString:urlStr]];
    
    _titleLabel.text = self.model.title;
     
    _slpganLabel.text = self.model.slogan;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
